/*
 * $Id$
 */

package org.sphx.api;

import java.util.*;

/**
 * Matched document information, as in search result.
 */
public class SphinxMatch
{
	/** Matched document ID. */
	public long		docId;

	/** Matched document weight. */
	public int			weight;

	/** Matched document attribute values. */
	public ArrayList	attrValues;


	/** Trivial constructor. */
	public SphinxMatch ( long docId, int weight )
	{
		this.docId = docId;
		this.weight = weight;
		this.attrValues = new ArrayList();
	}


    
    /**
     * docId.
     * @return  the docId
     */
    
    public long getDocId() {
        return docId;
    }


    
    /**
     * docId.
     * @param   docId    the docId to set
     */
    
    public void setDocId(long docId) {
        this.docId = docId;
    }


    
    /**
     * weight.
     * @return  the weight
     */
    
    public int getWeight() {
        return weight;
    }


    
    /**
     * weight.
     * @param   weight    the weight to set
     */
    
    public void setWeight(int weight) {
        this.weight = weight;
    }


    
    /**
     * attrValues.
     * @return  the attrValues
     */
    
    public ArrayList getAttrValues() {
        return attrValues;
    }


    
    /**
     * attrValues.
     * @param   attrValues    the attrValues to set
     */
    
    public void setAttrValues(ArrayList attrValues) {
        this.attrValues = attrValues;
    }
}

/*
 * $Id$
 */
